
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<ui:composition>
	<h:head>
		<h1>
			<h:outputText value="Domótica - ML SQ" styleClass="txt_titulo_pagina" />
		</h1>
	</h:head>
	<h:body styleClass="body">
		<h:outputStylesheet library="styles" name="stylesheet.css" />
		<h:form>
			<div align="center">
				<h:panelGrid id="panel" columns="2" border="0" cellpadding="5" cellspacing="5">
					<f:facet name="header">
						<h:outputText value="#{messages.SIGN_IN_MESSAGE}" styleClass="txt_titulo_tabela" />
					</f:facet>
					
					<h:outputLabel for="username" value="#{messages.USERNAME}" styleClass="txt_labels_pesquisa" />
					
					<h:inputText id="username" value="#{loginBean.username}" size="15" styleClass="txt_textbox" requiredMessage="Obrigatório" required="true">
						<f:validateLength minimum="2" />
					</h:inputText>
					
					<h:outputLabel for="password" value="#{messages.PASSWORD}" styleClass="txt_labels_pesquisa" />
					<h:inputText id="password" value="#{loginBean.password}" size="15" styleClass="txt_textbox" requiredMessage="Obrigatório" required="true">
						<f:validateLength minimum="2" />
					</h:inputText>
					
					<f:facet name="footer">
						<h:panelGroup style="display:block; text-align:center">
							<h:commandButton id="submit" value="#{messages.SUBMIT}" action="#{loginBean.login}" styleClass="txt_botao1" />
						</h:panelGroup>
					</f:facet>
				</h:panelGrid>
			</div>
		</h:form>

	</h:body>
</ui:composition>
</html>